
print("99乘法表第一种")
for j in range(1,10):
    for i in range(1,j+1):
     print("{}*{}={:<4}".format(i,j,i*j),end="")
    print("")

print(" 99乘法表第二种 ")

for j in range(9,0,-1):
    for i in range(1,j+1):
     print("{}*{}={:<4}".format(i,j,i*j),end="")
    print("")

print("")
print("99乘法表第三种 while")
a=1
while a<=9:
    b=1
    while b<=a:
        print("{}*{}={:<4}".format(b,a,a*b),end="")
        b+=1
    print("")
    a+=1

print("")
print("99乘法表第三种 while")
a=9
while a>=1:
    b=1
    while b<=a:
        print("{}*{}={:<4}".format(b,a,a*b),end="")
        b+=1
    print("")
    a-=1
